﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Reflection;
using System.Xml;
using System.Configuration;
using System.IO;

namespace com.creditos.dao.liclCerticom
{
    public class DLLCerticom
    {

        public DLLCerticom()
        {
         
        }

        public XmlDocument LoadCerticon(string user, string pass )
        {      
            XmlDocument xmlDoc = new XmlDocument();
            xmlDoc.Load("C:\\SVNLocal\\Credito\\com.creditos.dao.liclCerticom\\Login.xml");
            return xmlDoc;
        }

        public XmlDocument AproximacionPN(string SesionCerticom, string PsNroDoc, string PsApe01, string  PsApe02,string  PsNombres, string vacio, string UsuarioCerticom )
        {
            XmlDocument xmlDoc = new XmlDocument();
            xmlDoc.Load("C:\\SVNLocal\\Credito\\com.creditos.dao.liclCerticom\\DatosCerticom.xml");
            return xmlDoc;
        
        }

        public XmlDocument AproximacionPJ(string SesionCerticom, string PsNroDoc,string  PsApe01,string  UsuarioCerticom){

            XmlDocument xmlDoc = new XmlDocument();
            xmlDoc.Load("DatosCerticom.xml");
            return xmlDoc;

        }

        public object ValuePropiedad(object ac, string propertyname)
        {
            PropertyInfo pf = ac.GetType().GetProperty(propertyname);
            object oc = pf.GetValue(ac, null);
            return oc;

        }

    }
}
